package com.coderyeah.cosmetology.util;

/**
 * 返回结果状态
 */
public enum ResultCode {
    SUCCESS("200", "请求成功!"),
    FAIL("999", "请求失败!"),
    EMPTY("991", "数据不能为空！"),
    NO_EXIST("902", "用户不存在"),
    LOGIN("202", "登录成功"),
    NO_LOGIN("901", "用户未登录"),
    EXIST("808", "用户名已经存在");

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
